package com.dongjiantong.common.model;

/**
 * Created by cao on 2017/12/1.
 */
public enum CacheTime {

    ONE_MINUTES(60,"1分钟"),
    FIVE_MINUTES(300,"5分钟"),
    TEN_MINUTES(600,"10分钟"),
    THIRTY_MINUTES(1800,"30分钟"),

    ONE_HOUR(3600,"1小时"),

    ONE_SHORTDAY(3600*12,"1天12小时"),
    ONE_DAY(3600 * 24,"1天24小时"),
    TWO_DAY(3600 * 24 * 2,"2天"),
    ONE_WEEK(3600 * 24 * 7,"1周"),
    ONE_MONTH(3600 * 24 * 30,"1月");


    private final Integer time;
    private final String name;

    private CacheTime(Integer time,String name) {

        this.time = time;
        this.name = name;

    }
    public Integer getTime() {
        return this.time;
    }

    public String getName() {
        return this.name;
    }
}
